﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="TU_Function.List.aspx.cs" Inherits="JOIN.Rights.Apps.TU_FunctionList" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <!-- List.aspx -->
    <ajaxToolkit:ToolkitScriptManager ID="scriptmanager1" runat="server" />
    <table cellspacing="0" cellpadding="0" width="95%" border="0">
        <tr>
            <td>
                <table width="100%" class="InputTable">
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            功能编号：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtFunctionID" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            功能名称：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtFunctionName" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            功能描述：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtFunctionDesc" runat="server" Width="200px"></asp:TextBox>
                        </td>
                        <td height="25" width="30%" align="right" class="InputLabel">
                            项目代码：
                        </td>
                        <td height="25" width="*" align="left">
                            <asp:TextBox ID="txtProjectID" runat="server" Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center">
                <input type="button" id="btnQuery" value="查询" class="btn" />
                &nbsp;&nbsp;
                <input type="button" id="btnAdd" value="新增" class="btn" />
                <Kevin:DialogWindow ID="window1" runat="server" ControlID="btnAdd" URL="TU_Function.aspx"
                    Height="400px" Width="600px">
                </Kevin:DialogWindow>
            </td>
        </tr>
        <tr>
            <td>
                <Kevin:Grid ID="grid1" runat="server" GridCssClass="Grid" ServicePath="~/Services/BLLService.asmx"
                    QueryMethod="GetFunctionInfoList" AutoGetData="true" QueryControlID="btnQuery"
                    PagerPlace="Both" PageSize="15">
                    <Parameters>
                        <Kevin:QueryParameter ControlID="txtFunctionID" DataPropertyName="FunctionID" />
                        <Kevin:QueryParameter ControlID="txtFunctionName" DataPropertyName="FunctionName" />
                        <Kevin:QueryParameter ControlID="txtFunctionDesc" DataPropertyName="FunctionDesc" />
                        <Kevin:QueryParameter ControlID="txtProjectID" DataPropertyName="ProjectID" />
                    </Parameters>
                    <DataFields>
                        <Kevin:PopUpField DialogTitle="用户编辑" NavigateURLString="tu_function.aspx?KeyID={0}"
                            FormatFields="ID" ItemText="编辑" DialogHeight="400" DialogWidth="600" />
                        <Kevin:DataBoundField FieldName="ID" HeaderText="唯一标识键" Visible="false" />
                        <Kevin:DataBoundField FieldName="FunctionID" HeaderText="功能编号" />
                        <Kevin:DataBoundField FieldName="FunctionName" HeaderText="功能名称" />
                        <Kevin:DataBoundField FieldName="FunctionDesc" HeaderText="功能描述" />
                        <Kevin:DataBoundField FieldName="ProjectID" HeaderText="项目代码" />
                    </DataFields>
                </Kevin:Grid>
            </td>
        </tr>
    </table>
</asp:Content>
